package com.itheima.config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

//声明一个配置类
@Configuration
//配置包扫描
@ComponentScan("com.itheima")
//加载配置文件
@PropertySource("classpath:jdbc.properties")
//导入其他配置类
@Import({JdbcConfig.class,MybatisConfig.class})
public class SpringConfig {
}
